home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
hard
/
drivr
/
SerialMouseD.lha
/
SerialMouseD
/
Install-SerialMouse
next >
Wrap
Text File
|
1999-02-06
|
3KB
|
108 lines
; ************************************************
; *
; * $VER: Install-SerialMouse v1.01 (6.2.99)
; *
; * This is the installation-script for SerialMouse
; *
; * Copyright © 1999 Stephan Fuhrmann
; *
; ************************************************
(welcome "Welcome to the SerialMouse installation!")
(set OSVersion (/ (getversion) 65536))
(set appname "SerialMouse")
(message "SerialMouse is SHAREWARE !\n\n"
"This means that you *MUST* pay the shareware-fee\n"
"after testing\n\nSerialMouse\n\nor delete it.\n"
"\nChoose 'Proceed' if you agree!"
)
(set mydest
(askdir
(prompt "Select the directory where you\n want to put the SerialMouse executable.")
(help
"The directory where you store the executable "
"should be easily accessible via WorkBench or CLI/Shell.\n\n"
@askfile-help
)
(default "SYS:C")
(disk)
)
)
(copyfiles
(prompt "Copying SerialMouse driver to " @mydest)
(source "SerialMouse")
(dest mydest)
(confirm)
(help
"Installation process is about to copy the executable to your selected"
"destination drawer."
@copylib-help
)
)
(set protocol
(askchoice
(prompt "Please choose the protocol your mouse is using:")
(help @askchoice-help)
(choices "Microsoft ® (2 buttons)" "Mousesystems ® (3 buttons)")
(default 0)
)
)
(select protocol (set protostr "Microsoft") (set protostr "Mousesystems"))
(set device
(askfile
(prompt "Please choose the device driver to use:")
(help "The device driver usually being used is "
"serial.device unit 0. Only choose something different if "
"you have an I/O extender.")
(default "devs:serial.device")
)
)
(if (fileonly device)
(if (= "devs:" (pathonly device))
(set device (fileonly device))
(set dummy 0)
)
(set device "serial.device")
)
(set unit
(asknumber
(prompt "What unit number of " device " do you want to use?")
(range 0 255)
(default 0)
(help "Select the device unit the serial mouse is plugged at. If you "
"have no serial I/O extenders, this will usually be unit 0 "
"(of the serial.device)" )
)
)
(set pri
(asknumber
(prompt "What task priority do you want to use?")
(range 0 30)
(default 10)
(help "Device drivers are usually being run at a higher priority "
"than normal applications because their vital importance to the user.")
)
)
(set cmd
(tackon mydest "SerialMouse")
)
(startup appname
(prompt "Going to insert a call to SerialMouse in your s:user-startup file ")
(help "The call being inserted will start SerialMouse as soon as your computer boots up.")
(command "Run >NIL: <NIL: " cmd " >NIL: <NIL: DEVICE=" device " " "UNIT=" unit " " "TASKPRI=" pri " " protostr)
)